import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import { setupRouter } from '@/router';
import { createPinia } from 'pinia';
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate';
import "element-plus/theme-chalk/el-message-box.css";
import "element-plus/theme-chalk/el-loading.css";
import "element-plus/theme-chalk/el-message.css";
import "element-plus/theme-chalk/el-notification.css";
import "default-passive-events";
//添加存储
const pinia = createPinia()
//启用持久化插件
pinia.use(piniaPluginPersistedstate);

const app = createApp(App);
app.use(pinia);
// 创建路由
setupRouter(app);

//挂载
app.mount('#app');
